<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>パスワード変更</title>
<style type="text/css">

</style>
<script type="text/javascript" src="/board/js/jquery-1.11.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
function formCheck(){
	var password = $('#password').val();
	var password1 = $('#password1').val();
	
	if(password == password1){
		return true;
	}else{ 
		alert('パスワードを確認してください');
		return false;
	}
}
function goMenu(){
	location.href='/board/goMenu.action';
}
</script>

</head>
<body>
<s:form action="setPassword" method="post" theme="simple" onsubmit="javascript: return formCheck();">
		<table>
			<tr>
				<th>パスワード変更画面</th>
			</tr>
			<tr>
				<td>
				<p><span>${session.id }さん</span>
				<a href="/board/member/goLogout.action">ロ グ ア ウ ト</a></p></td>
			</tr>
			<tr>
				<td class="user_id">ユーザーID</td>
				<td class="user_id">${session.id }</td>
			</tr>
			<tr>
				<td class="user_id">新規パスワード</td>
				<td class="user_id"><s:password name="password" id="password" /></td>
			</tr>
			<tr>
				<td class="user_id">パスワード確認</td>
				<td class="user_id"><s:password id="password1" /></td>
			</tr>
			<tr>
				<td></td>
				<td><s:submit class="btn" value="変更" /> 
				<input type="button" class="btn" value="戻る" onclick="javascript:goMenu()"> </td>
			</tr>			
		</table>
	</s:form>
</body>
</html>